package com.canis.stockmanager.repository;

import com.canis.stockmanager.domai.SysUser;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.FluentQuery;

import java.util.List;
import java.util.Optional;
import java.util.function.Function;

public interface UserRepository  extends JpaRepository<SysUser, Long> {
    SysUser findByName(String name);
    SysUser findById(long id);
}
